﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace NerdDinner.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Message"] = ConfigurationManager.AppSettings["NerdDinner.WelcomeMessage"];
            ViewData["Hello"] = "Is any body out there?";

            return View();
        }

        public ActionResult Index2()
        {
            
            return View("ViewPage1");
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult IncludedContent()
        {
            ViewData["IncludedData"] = "This is my included data";
            return View();
        }
    }
}
